package com.wecon.springdemo.pattern.template.soya;

/**
 * @author Weikang  Wang
 * @program: com.wecon.springdemo.pattern.template
 * @description: 操作器
 * @date 2020/5/11 10:20
 */
public class Application {

    public static void main(String[] args) {

        System.out.println("制作黑豆豆浆");
        AbstractSoyaMilk blackSoyaMilk = new BlackSoyaMilk();
        blackSoyaMilk.make();

        System.out.println("————————————————————");

        System.out.println("制作花生豆浆");
        AbstractSoyaMilk pennutSoyaMilk = new PennutSoyaMilk();
        pennutSoyaMilk.make();

        System.out.println("————————————————————");

        System.out.println("制作纯豆浆（不加配料）");
        AbstractSoyaMilk redSoyaMilk = new RedSoyaMilk();
        redSoyaMilk.make();

    }

}
